package com.yuzhitong.shapi.base;

import com.yuzhitong.shapi.BuildConfig;

/**
 * 应用使用常量
 */
public class Contents {
    /**
     * 服务器地址
     */
    // 测试环境
    //    public static String BASE_URL = "http://120.77.254.146:8848/";
    // 开发环境
//    public static String BASE_URL = "http://shapi-dev.yuzhitong.net/";
    // 正式环境
    public static String BASE_URL = "http://aikan.yuzhitong.net/";
//    public static String BASE_URL = BuildConfig.DEBUG ? "http://shapi-dev.yuzhitong.net/" : "http://shapi.yuzhitong.top/";

    /**
     * 接口返回值成功码
     */
    public static int NET_SUCCESS_CODE = 200;

    /**
     * 是否为DeBug模式
     */
    //    public static boolean DEBUG = true; // TODO
    public static boolean DEBUG = BuildConfig.DEBUG;
    /**
     * 是否打印log
     */
    public static boolean PRINT_LOG = true;
    /**
     * logTAG
     */
    public static final String LOG_TAG = "brsya_okhttp_log__";
    /**
     * 广告持续时间
     */
    public static final int AD_SHOW_TIME = 30 * 1000;
    /**
     * 默认分页大小
     */
    public static final int PAGE_SIZE = 24;
    /**
     * 播放历史保存数量
     */
    public static final int PLAY_HISTORY_SIZE = 20;





    // 友盟SDK id
    public static final String YM_SDK_ID = "631878f605844627b541f844";
    // 穿山甲广告SDK 应用id
    public static final String AD_TT_SDK_ID = "5329568";
    // 穿山甲广告SDK 首页广告id
    public static final String AD_TT_SDK_HOME_ID = "949697506";
    // 穿山甲广告SDK 首页点击半屏id
    public static final String AD_TT_SDK_HOME_CLICK_WEB_ID = "949697508";
    // 穿山甲广告SDK 导航广告id
    public static final String AD_TT_SDK_NAVIGATION_ID = "949697509";
    // 穿山甲广告SDK 设置广告id
    public static final String AD_TT_SDK_SETTING_ID = "949697511";
    // 穿山甲广告SDK WEB广告id
    public static final String AD_TT_SDK_WEB_ID = "949697513";
    // 穿山甲广告SDK 影视广告id
    public static final String AD_TT_SDK_MOVIE_ID = "949697517";
    public static final String AD_TT_SDK_MOVIE_ID_1 = "949697519";
    public static final String AD_TT_SDK_MOVIE_ID_2 = "949697520";
    public static final String AD_TT_SDK_MOVIE_ID_3 = "949697543";
    public static final String AD_TT_SDK_MOVIE_ID_4 = "949697559";
    public static final String AD_TT_SDK_MOVIE_ID_5 = "949697577";
    public static final String AD_TT_SDK_MOVIE_ID_6 = "949697595";
    // 穿山甲广告SDK 视频播放横屏广告
    public static final String AD_TT_SDK_PLAY_BIG = "949697599";
    // 穿山甲广告SDK 视频暂停竖屏广告
    public static final String AD_TT_SDK_PLAY = "949697603";
    // 穿山甲广告SDK 启动页竖屏广告
    public static final String AD_TT_SDK_PLASH = "887918680";



    // 快手AppId
    public static final String KS_SDK_APP_ID = "1073900001";
    // 推荐-横版图文
    public static final long KS_SDK_IMG_TEXT_ID = 10739000022L;
    // 热榜-热榜列表
    public static final long KS_SDK_HOT_ID = 10739000029L;
    // 视频-横版视频
    public static final long KS_SDK_VIDEO_ID = 10739000036L;
    // 视频-滑动视频
    public static final long KS_SDK_VIDEO_FRAGMENT_ID = 10739000043L;
    // 视频页-视频
    public static final long KS_SDK_VIDEO_VIDEO_ID = 10739000050L;

    public static final String AGREEMENT_URL_PRIVATE = "https://appxieyi.oss-cn-hangzhou.aliyuncs.com/shapi/%E6%B2%99%E7%9A%AE%E9%9A%90%E7%A7%81%E6%94%BF%E7%AD%96.txt";
    public static final String AGREEMENT_URL_USER = "https://appxieyi.oss-cn-hangzhou.aliyuncs.com/shapi/%E6%B2%99%E7%9A%AE%E7%94%A8%E6%88%B7%E5%8D%8F%E8%AE%AE.txt";



    // 广告过滤规则文件名称
    public static final String AD_HOSTS_FILE_NAME = "adFilter";

    /**
     * 默认配置
     */
    // 默认百度搜索网址
    public static final String SEARCH_URL_BD = "https://www.baidu.com/s?wd=";
    // 默认bing搜索网址
    public static final String SEARCH_URL_BING = "https://cn.bing.com/search?q=";
    // 默认神马搜索网址
    public static final String SEARCH_URL_SHM = "https://m.sm.cn/s?from=smor&safe=1&snum=6&q=";
    // 默认头条搜索网址
    public static final String SEARCH_URL_TT = "https://so.toutiao.com/search/?pd=synthesis&source=input&traffic_source=&original_source=&in_tfs=&in_ogs=&extra=%7B%22a11y_config%22%3A%22000%22%7D&keyword=";

    /**
     * 缓存key
     */
    // 同意协议
    public static final String CACHE_KEY_AGREE_AGREEMENT = "cache_key_agree_agreement_usu";
    // 搜索地址
    public static final String CACHE_KEY_SEARCH_URL = "cache_key_search_url";
    // 统一广告开关
    public static final String CACHE_KEY_AD_STATUS = "cache_key_ad_status";
    // 内容广告开关
    public static final String CACHE_KEY_AD_CONTENT_STATUS = "cache_key_ad_content_status";
    // 首页和JS广告开关
    public static final String CACHE_KEY_AD_HOME_STATUS = "cache_key_ad_home_status";
    // 导航历史记录
    public static final String CACHE_KEY_HISTORY_LIST = "cache_key_history_list";
    // 首页点击间隔时间
    public static final String CACHE_KEY_HOME_CLICK_TIMEOUT = "cache_key_home_click_timeout";
    // 首页点击次数
    public static final String CACHE_KEY_HOME_CLICK_NUMBER = "cache_key_home_click_number";
    // 搜索框显示开关
    public static final String CACHE_KEY_SEARCH_SHOW = "cache_key_search_show";
    // 搜索框显示开关
    public static final String CACHE_KEY_MOVIE_SHOW = "cache_key_movie_show";
    // 分类数据
    public static final String CACHE_KEY_CATEGORY = "cache_key_category";
    // 第一个分类热门数据
    public static final String CACHE_KEY_CATEGORY_HOT = "cache_key_category_hot";
    // 第一个分类今日推荐数据
    public static final String CACHE_KEY_CATEGORY_DAY = "cache_key_category_day";
    // 播放历史
    public static final String CACHE_KEY_HISTORY = "cache_key_history";


    /**
     * Intent 数据key
     */
    public static final String INTENT_H5_URL = "intent_h5_url";
    public static final String INTENT_H5_SHOW_AD = "intent_h5_show_ad";
    public static final String INTENT_H5_AGREEMENT = "INTENT_H5_AGREEMENT";
    public static final String INTENT_TITLE_AGREEMENT = "intent_title_agreement";
    public static final String INTENT_MOVIE_TYPE = "intent_movie_type";
    public static final String INTENT_MOVIE_SORT = "intent_movie_sort";
    public static final String INTENT_MOVIE_DETAIL = "intent_movie_detail";


    /**
     * 搜索Fragment类型
     */

    public static final int POSITION_MOVIE_MOVIE = 0;
    public static final int POSITION_MOVIE_SEARCH = 1;
    public static final int POSITION_MOVIE_BING = 2;
    public static final int POSITION_MOVIE_SHM = 3;
    public static final int POSITION_MOVIE_BD = 4;
    public static final int POSITION_MOVIE_TT = 5;
}
